package com.lebang.model;

import com.lebang.entity.RequestHeaders;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import javax.servlet.http.HttpServletRequest;
import java.time.LocalDateTime;

/**
 * @Author: hwq
 * @Date: 2020/1/9 10:10
 * @Version 1.0
 */
@Document("ValidCodeRecord")
@Data
public class ValidCodeRecord extends RequestHeaders {
    @Field("id")
    private Long id;
    @Field
    private LocalDateTime creatTime;
    @Field
    private String phone;
    @Field
    private String code;


    public ValidCodeRecord(HttpServletRequest request) {
        super(request);
    }
    public ValidCodeRecord() {

    }
}
